package IC.AST;


public class BasicType extends Type {
	
	private BasicTypeEnum _type;
	
	public Object Visit (Visitor visitor) {return visitor.Visit(this); }
	
	public BasicType (Interval interval, BasicTypeEnum type)
	{
		super(interval);
		_type = type;
	}
	
	public BasicTypeEnum GetBasicTypetype() {return _type;}
	
	public enum BasicTypeEnum
	{
		INT ("INT", 0),
		BOOL ("BOOL", 1),
		STRING ("STRING", 2);
		
		private String _string;
		private int _identefire;
		
		private BasicTypeEnum (String string, int identefire)
		{
			_string = string;
			_identefire = identefire;
		}
		
		public int GetID() { return _identefire; }
		
		public String toString() { return new String(_string); }
	}
}
